package com.bc.web.config;

import com.bc.web.model.Account;
import com.bc.web.model.AccountLog;
import com.bc.web.model.AdminRole;
import com.bc.web.model.AdminUser;
import com.bc.web.model.Channel;
import com.bc.web.model.ChannelFee;
import com.bc.web.model.ClearingCollect;
import com.bc.web.model.ClearingDetail;
import com.bc.web.model.ClearingIncome;
import com.bc.web.model.ClearingMonitor;
import com.bc.web.model.Dictionary;
import com.bc.web.model.FeeModel;
import com.bc.web.model.Merch;
import com.bc.web.model.MerchRole;
import com.bc.web.model.MerchUser;
import com.bc.web.model.Org;
import com.bc.web.model.OrgRole;
import com.bc.web.model.OrgUser;
import com.bc.web.model.PayOrder;
import com.bc.web.model.PayOrderItem;
import com.bc.web.model.RiskRule;
import com.bc.web.model.ShareFee;
import com.bc.web.model.TradeOrder;
import com.bc.web.model.TradeStrategy;
import com.bc.web.model.TransferQrcode;
import com.bc.web.model.WxClear;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

/**
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		//主键字段默认 id
		arp.addMapping("bd_channel", Channel.class);
		arp.addMapping("bd_fee_model", FeeModel.class);
		arp.addMapping("bd_merch", Merch.class);
		arp.addMapping("bd_org", Org.class);
		arp.addMapping("bd_dictionary", Dictionary.class);
		arp.addMapping("bd_channel_fee", ChannelFee.class);
		arp.addMapping("bd_share_fee", ShareFee.class);
		arp.addMapping("bd_trade_strategy", TradeStrategy.class);
		arp.addMapping("sm_admin_role", AdminRole.class);
		arp.addMapping("sm_admin_user", AdminUser.class);
		arp.addMapping("sm_org_role", OrgRole.class);
		arp.addMapping("sm_org_user", OrgUser.class);
		arp.addMapping("sm_merch_role", MerchRole.class);
		arp.addMapping("sm_merch_user", MerchUser.class);
		arp.addMapping("bd_risk_rule", RiskRule.class);
		arp.addMapping("clearing_monitor", ClearingMonitor.class);
		arp.addMapping("clearing_detail", ClearingDetail.class);
		arp.addMapping("clearing_collect", ClearingCollect.class);
		arp.addMapping("clearing_income", ClearingIncome.class);
		arp.addMapping("pay_order", PayOrder.class);
		arp.addMapping("pay_order_item", PayOrderItem.class);
		arp.addMapping("transfer_qrcode", TransferQrcode.class);
	}
	
	public static void mappingTrade(ActiveRecordPlugin arp) {
		//主键字段默认 id
		arp.addMapping("account", Account.class);
		arp.addMapping("account_log", AccountLog.class);
		arp.addMapping("trade_order", TradeOrder.class);
		arp.addMapping("wx_clear", WxClear.class);
	}
	
}

